import request from "@/utils/request";

// 查询列表
export function getAddressList(query) {
  return request({
    url: "/qb/address/allList",
    method: "get",
    params: query,
  });
}
// 删除
export function delAddressList(ids) {
  return request({
    url: "/qb/address/" + ids,
    method: "delete",
  });
}

// 查询详细
export function getAddressListItem(ids) {
  return request({
    url: "/qb/address/" + ids,
    method: "get",
  });
}

// 新增
export function addAddressListItem(data) {
  return request({
    url: "/qb/address/insert",
    method: "post",
    data: data,
  });
}

// 修改
export function updateAddressListItem(data) {
  return request({
    url: "/qb/address/update",
    method: "put",
    data: data,
  });
}
